# -*- coding: UTF-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import Select
import time,json,requests,threading


vivo = webdriver.Firefox()
vivo.get('https://passport.vivo.com/#/login?client_id=30&redirect_uri=https%3A%2F%2Fwww.vivo.com%2F')


mobile=18573122260


time.sleep(10)
v=vivo.find_element(By.CSS_SELECTOR,".phone-box .input")
# v.click()
v.send_keys(mobile)

time.sleep(10)
while(True):
	v=vivo.find_element(By.CSS_SELECTOR,".get-code-pc.ellipsis .get span")
	v.click()
	time.sleep(60)	